/*
 * @features: 主要功能
 * @description: 内容说明
 * @Date: 2021-10-08 10:06:41
 * @Author: judu233(769471424@qq.com)
 * @LastEditTime: 2021-10-08 12:39:02
 * @LastEditors: judu233
 */
// /*
//  * @features: 功能
//  * @description: 说明
//  * @Date: 2021-09-13 15:04:52
//  * @Author: judu233(769471424@qq.com)
//  * @LastEditTime: 2021-10-05 23:07:35
//  * @LastEditors: judu233
//  */
// import { Component, EventTouch, _decorator } from "cc";
// import { engine } from "../../../Main/Engine";
// import { tips } from "../../../gui/prompt/TipsManager";

// const { ccclass, property } = _decorator;

// @ccclass('Demo')
// export class Demo extends Component {
//     private lang: boolean = true;

//     onLoad() {
//         console.log(engine.i18n.getLangByID("notify_show"));
//     } 

//     private btn_language(event: EventTouch, data: any) {
//         if (this.lang == false) {
//             this.lang = true;
//             engine.i18n.setLanguage("zh", () => {

//             });
//         }
//         else {
//             this.lang = false;
//             engine.i18n.setLanguage("en", () => {

//             });
//         }
//     }

//     private btn_common_prompt(event: EventTouch, data: any) {
//         tips.test(() => {

//         });
//         tips.test(() => {

//         });
//     }
 
//     private btn_notify_show(event: EventTouch, data: any) {
//         engine.gui.toast("common_prompt_content");
//     }

//     private netInstableOpen(event: EventTouch, data: any) {
//         tips.netInstableOpen();
//         setTimeout(() => {
//             tips.netInstableClose();
//         }, 2000);
//     }

//     private btn_audio_open1(event: EventTouch, data: any) {
//         engine.audio.playMusic("audios/nocturne");
//     }

//     private btn_audio_open2(event: EventTouch, data: any) {
//         engine.audio.playEffect("audios/Gravel");
//     }
// }
